﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using TripAssistantDesktop.View;

namespace TripAssistantDesktop.Modules
{
    class OrdersModule: IModule
    {
       
        private readonly IRegionViewRegistry regionViewRegistry;
        public OrdersModule(IRegionViewRegistry registry)
    {
        this.regionViewRegistry = registry;   

           
    }
         
        public void Initialize()
        {
            //We need to register our Module in TripNavigationRegion.
            regionViewRegistry.RegisterViewWithRegion("OrdersRegion", typeof(OrdersView));
            
        }
    }
}
